# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-ppdeep
_pkgname=ppdeep
pkgver=20250625
pkgrel=1
pkgdesc='Pure-Python library for computing fuzzy hashes (ssdeep).'
arch=('any')
url='https://pypi.org/project/ppdeep/#files'
license=('Apache')
depends=('python')
makedepends=('python-setuptools' 'python-pip' 'python-wheel')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('63683dd21c2f96404135b098b935eabbd0bcb49c733e6e4550b2954bc88c9f43fa5acacbcbfc9d72eb461996de794f2b71901945d9177a616064a39d147a8346')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

